package com.calmcar.adas.conf;

import org.opencv.core.Scalar;

/**
 * Created by 高立帅 on 2018/4/3.
 */

public class Constant {
    public static final String APP_LOG_PATH="/calmadas/error/log/";
    public static  boolean LOG_SAVE = true;
//    //5米
//    public static int  CAR_CRASH_AREA_TOP_Y= 340,//292,
//            CAR_CRASH_AREA_BOTTOM_Y= 360;
//    public static int  CAR_CRASH_AREA_LEFT_X =330,
//            CAR_CRASH_AREA_RIGHT_X= 470;
//    //15米
//    public static int  CAR_SAFE_DISTANCE_AREA_TOP_Y =290,//271,
//            CAR_SAFE_DISTANCE_AREA_BOTTOM_Y= 305;
//    public static int  CAR_SAFE_DISTANCE_AREA_LEFT_X =330,
//            CAR_SAFE_DISTANCE_AREA_RIGHT_X= 470;

    //5米-2米
    public static int  CAR_CRASH_AREA_TOP_Y= 310,//292,
            CAR_CRASH_AREA_BOTTOM_Y= 330;
    //15米-10米
    public static int  CAR_SAFE_DISTANCE_AREA_TOP_Y =260,//271,
            CAR_SAFE_DISTANCE_AREA_BOTTOM_Y= 300;
     //中心区
     public static int  CAR_FRONT_AREA_CENTER_X  = 480,CAR_FRONT_AREA_LEFT_X =430,
             CAR_FRONT_AREA_RIGHT_X= 530;

    //480-864
    public static int REAL_DIS_SCALE=25;
    //ADAS 速度阀值
    public static int CAR_SPEED_LANE_THRESHOLD =25;//36或 45
    public static int CAR_SPEED_FRONT_THRESHOLD =10;//18 或25
    //车辆停止 速度范围
    public  static int CAR_SPEED_STILL_THRESHOLD = 0;
    //车辆减速 速度范围
    public  static int CAR_SPEED_STILL_THRESHOLD_MIDDLE = 15;

    //许可限制时间
    public  static long  LICENCE_LIMIT_DATE =3*24*60*60; //3*24*60*60;
    public static int GPS_LEVEL=0;
    //车道线画笔宽度
    public static int LANE_PIXEL = 2;

    public static int CAR_PIXEL=1;

    public static int CENT_X=432;
    public static int CENT_Y=240;
    public static int SHOW_ADJ_RECT_STARTX=400;
    public static int SHOW_ADJ_RECT_STARTY=200;
    public static int SHOW_ADJ_RECT_ENDX=450;
    public static int SHOW_ADJ_RECT_ENDY=260;


    public static int SAFE_RESPONSE_TIME=4;
    public static int SAFE_RESPONSE_DIS_MAX=4;


    public  static final Scalar CAR_RECT_COLOR  = new Scalar(0, 255, 0, 255);
    public static final  Scalar CAR_RECT_COLOR_RED  = new Scalar(255, 0, 0, 255);
    public  static final Scalar CAR_RECT_COLOR_YELLOW  = new Scalar(240, 94, 15, 255);
    public  static final Scalar CAR_RECT_COLOR_BLUE = new Scalar(0, 0, 255, 255);

    public static String url = "http://39.106.14.237/CalmcarMirror/form.php";
}
